#region Namespace Inclusions
using System;
using System.Data;
using System.Text;
using System.Drawing;
using System.IO.Ports;
using System.Windows.Forms;
using System.ComponentModel;
using System.Collections.Generic;
using System.Threading;

using SCI_actuator.Properties;
#endregion

namespace SCI_actuator
{
    class sctsetting
    {
        public sctsetting()
        {
            portname = Settings.Default.PortName.ToString();
            parity = Settings.Default.Parity.ToString();
            stopbits = Settings.Default.StopBits.ToString();
            databits = Settings.Default.DataBits.ToString();
            baudrate = Settings.Default.BaudRate.ToString();
            datamode = Settings.Default.DataMode.ToString();

        }

        private string portname;
        private string baudrate;
        private string databits;
        private string parity;
        private string datamode;
        private string stopbits;

        public string Portname
        {
            get{return portname;}
            set{portname = value;}
        }
        public string Baudrate
        {
            get { return baudrate; }
            set { baudrate = value; }
        }
        public string Databits
        {
            get { return databits; }
            set { databits = value; }
        }
        public string Parity
        {
            get { return parity; }
            set { parity = value; }
        }
        public string Datamode
        {
            get { return datamode; }
            set { datamode = value; }
        }
        public string Stopbits
        {
            get { return stopbits; }
            set { stopbits = value; }
        }
        
    }
}
